using System.Collections.ObjectModel;

namespace WebServer.BusinessLogic.Web
{
    public interface ISessionManager
    {
        bool IsCookieless { get; }
        Session GetSessionByKey(string sessionKey, Request request);
        Session GetCurrentSession(Request request);
        Session CreateSession(Request request, Response response);
        void UpdateSession(Request request, Session session);
        bool DeleteSession(string sessionKey, Request request, Response response);
        string GetSessionUrl(Request request);
        Collection<Session> SessionList { get; }
    }
}